package com.google.gwt.gfx.client.shared;

/**
 * Position with two control points in an area in screen.
 */
public class DoubleControlPoint {

	private int controlLeft1;

	private int controlLeft2;

	private int controlTop1;

	private int controlTop2;

	private int left;

	private int top;

	public DoubleControlPoint(double controlLeft1, double controlTop1,
			int controlLeft2, int controlTop2, double left, double top) {
		this((int) controlLeft1, (int) controlTop1, (int) controlLeft2,
				(int) controlTop2, (int) left, (int) top);
	}

	public DoubleControlPoint(int controlLeft1, int controlTop1,
			int controlLeft2, int controlTop2, int left, int top) {
		this.controlLeft1 = controlLeft1;
		this.controlTop1 = controlTop1;
		this.controlLeft2 = controlLeft2;
		this.controlTop2 = controlTop2;
		this.left = left;
		this.top = top;
	}

	public int getControlLeft1() {
		return controlLeft1;
	}

	public int getControlLeft2() {
		return controlLeft2;
	}

	public int getControlTop1() {
		return controlTop1;
	}

	public int getControlTop2() {
		return controlTop2;
	}

	public int getLeft() {
		return left;
	}

	public int getTop() {
		return top;
	}

	public void setControlLeft1(int controlLeft) {
		this.controlLeft1 = controlLeft;
	}

	public void setControlLeft2(int controlLeft2) {
		this.controlLeft2 = controlLeft2;
	}

	public void setControlTop1(int controlTop) {
		this.controlTop1 = controlTop;
	}

	public void setControlTop2(int controlTop2) {
		this.controlTop2 = controlTop2;
	}

	public void setLeft(final int left) {
		this.left = left;
	}

	public void setTop(final int top) {
		this.top = top;
	}

}
